
@font-face {
    font-family: 'Instrument Sans';
    src: url('InstrumentSans-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Instrument Sans', sans-serif;
    background-color: #f9e9e9;
}

.section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.background-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('trama.png') center center no-repeat;
    background-size: contain;
    width: 1600px;
    height: 1600px;
    opacity: 0.2;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 90%;
    margin-left: 10px; /* Added left margin */
}

h1 {
    color: #d00000;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

button {
    background-color: #d00000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    font-family: 'Bricolage Grotesque', sans-serif;
    text-align: left;
}

button:hover {
    background-color: #a00000;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .content {
        max-width: 50%;
        margin-left: 40px; /* More left margin in desktop */
    }
    h1 {
        font-size: 3rem; /* Larger main text in desktop */
        max-width: 15ch; /* Limit to ~4 words per line */
        line-height: 1.2;
    }
}

/* Mobile adjustments: maintain large background size */
@media (max-width: 480px) {
    .background-pattern {
        width: 1600px;
        height: 1600px;
    }
}
